package com.ccl.iot.object;

public class IOTAbsDevice {
	public long iID;
	
	public IOTDeviceInfoEx iInfo;
	public IOTDeviceIP iIP;
	public IOTDeviceMAC iMAC;
	
	public IOTAbsDevice(long aDevID){
		iID = aDevID;
		iInfo = null;
		iIP = null;
		iMAC = null;
	}
	
	public IOTAbsDevice(long aDevID, int aType, int aModel, long aVersion, long aRegisterSpace){
		this(aDevID);
		
		iInfo = new IOTDeviceInfoEx(aType, aModel, aVersion, aRegisterSpace);
	}
	
	public IOTAbsDevice(long aDevID, int aType, int aModel, long aVersion, long aRegisterSpace, int aDeviceIP){
		this(aDevID, aType, aModel, aVersion, aRegisterSpace);
		
		iIP = new IOTDeviceIP(aDeviceIP);
	}
}
